package cn.eeepay.framework.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.eeepay.framework.dao.AgentAuthorizedOpenRecordMapper;
import cn.eeepay.framework.model.AgentAuthorizedOpenRecord;

@Service
public class AgentAuthorizedOpenRecordServiceImpl {
	
	@Autowired
	private AgentAuthorizedOpenRecordMapper agentAuthorizedOpenRecordMapper;

	public Long countByAgentLink(String agentLink) {
		return agentAuthorizedOpenRecordMapper.countByAgentLink(agentLink);
	}

	public void deleteByAgentNode(String agentLink) {
		agentAuthorizedOpenRecordMapper.deleteByAgentNode(agentLink);
	}

	public void insert(AgentAuthorizedOpenRecord agentAuthorizedOpenRecord) {
		agentAuthorizedOpenRecordMapper.insert(agentAuthorizedOpenRecord);		
	}
	
	
}
